home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / dosref19.arc / CONTENTS < prev    next >
Text File  |  1991-06-07  |  22KB  |  389 lines

  1.  
  2.    **  Programmer's  Technical  Reference  for  MSDOS  and  the  IBM  PC **
  3.                         ┌─────────────────────────────┐
  4.                         │ Shareware Version, 04/16/91 │
  5.                         │  Please Register Your Copy  │
  6.                         └─────────────────────────────┘
  7.                     Copyright (c) 1987, 1991 Dave Williams
  8.                           USA copyright TXG 392-616
  9.                      ISBN 1-878830-02-3 (disk-based text)
  10.  
  11.  
  12.                                TABLE OF CONTENTS
  13.  
  14.  
  15. INTRO           Introduction, credits, copyrights
  16.  
  17.  
  18. CHAPTER 1       DOS and the PC
  19.  
  20. Some History .......................................................... 1**1
  21. What is DOS? .......................................................... 1**2
  22. Other Operating Systems ............................................... 1**3
  23. Specific Versions of MS/PC-DOS ........................................ 1**4
  24. The Operating System Heirarchy ........................................ 1**5
  25. DOS Structure ......................................................... 1**6
  26. DOS Initialization .................................................... 1**7
  27.  
  28.  
  29. CHAPTER 2       Low Memory and Absolute Addresses
  30.  
  31. Introduction .......................................................... 2**1
  32. System Memory Map ..................................................... 2**2
  33. A Brief Guide to Current Memory Terminology ........................... 2**3
  34. PC Port Assignment .................................................... 2**4
  35. Reserved Memory Locations ............................................. 2**5
  36. Absolute Addresses .................................................... 2**6
  37. The IBM PC System Interrupts (Overview) ............................... 2**7
  38. Quick Chart of Interrupts 00h-0FFh .................................... 2**8
  39. The IBM-PC System Interrupts 00h-0Fh (in detail) ...................... 2**9
  40.  
  41.  
  42. CHAPTER 3       The IBM ROM BIOS
  43.  
  44. Calling the ROM BIOS .................................................. 3**1
  45. Interrupt 10h  Video Services ......................................... 3**2
  46. Interrupt 11h  Equipment Check ........................................ 3**3
  47. Interrupt 12h  Memory Size ............................................ 3**4
  48. Interrupt 13h  Disk Functions ......................................... 3**5
  49. Interrupt 14h  Initialize and Access Serial Port ...................... 3**6
  50.                FOSSIL Drivers ......................................... 3**7
  51. Interrupt 15h  Cassette I/O ........................................... 3**8
  52. Interrupt 16h  Keyboard I/O ........................................... 3**9
  53. Interrupt 17h  Printer ................................................ 3**10
  54. Interrupt 18h  ROM BASIC .............................................. 3**11
  55. Interrupt 19h  Bootstrap Loader ....................................... 3**12
  56. Interrupt 1Ah  Time of Day ............................................ 3**13
  57. Interrupt 1Bh  Control-Break .......................................... 3**14
  58. Interrupt 1Ch  Timer Tick ............................................. 3**15
  59. Interrupt 1Dh  Vector of Video Initialization Parameters .............. 3**16
  60. Interrupt 1Eh  Vector of Diskette Controller Parameters ............... 3**17
  61. Interrupt 1Fh  Ptr to Graphics Character Extensions (Graphics Set 2) .. 3**18
  62.  
  63.  
  64. CHAPTER 4       DOS Function Requests
  65.  
  66. General Programming Guides ............................................ 4**1
  67. DOS Registers ......................................................... 4**2
  68. DOS Stacks ............................................................ 4**3
  69. DOS Interrupts ........................................................ 4**4
  70. Interrupt 20h (Terminate) ............................................. 4**5
  71. DOS Services (quick list) ............................................. 4**6
  72. Calling the DOS Services .............................................. 4**7
  73. Version Specific Information .......................................... 4**8
  74. Compatibility Problems With DOS 4.0+ .................................. 4**9
  75. PCjr Cartridge Support ................................................ 4**10
  76. eDOS 4.0 .............................................................. 4**11
  77. DOS Services in Detail ................................................ 4**12
  78.  
  79.  
  80. CHAPTER 5       Interrupts 22h through 0FFh
  81.  
  82. Interrupt 22h   Terminate Address ..................................... 5**1
  83. Interrupt 23h   Ctrl-Break Exit Address ............................... 5**2
  84. Interrupt 24h   Critical Error Handler ................................ 5**3
  85. Interrupt 25h   Absolute Disk Read .................................... 5**4
  86. Interrupt 26h   Absolute Disk Write ................................... 5**5
  87. Interrupt 27h   Terminate And Stay Resident ........................... 5**6
  88. Interrupt 28h   (not documented by Microsoft) ......................... 5**7
  89. Interrupt 29h   (not documented by Microsoft) ......................... 5**8
  90. Interrupt 2Ah   Microsoft Networks - Session Layer Interrupt .......... 5**9
  91. Interrupt 2Bh   Unknown ............................................... 5**10
  92. Interrupt 2Ch   Unknown ............................................... 5**11
  93. Interrupt 2Dh   Unknown ............................................... 5**12
  94. Interrupt 2Eh   Alternate EXEC (DOS 2.0+) ............................. 5**13
  95. Interrupt 2Fh   Multiplex Interrupt ................................... 5**14
  96. Interrupt 30h   FAR jump instruction for CP/M-style calls ............. 5**15
  97. Interrupt 31h   Unknown ............................................... 5**16
  98. Interrupt 32h   Unknown ............................................... 5**17
  99. Interrupt 33h   Used by Microsoft Mouse Driver Function Calls ......... 5**18
  100. Interrupt 34h   Turbo C/Microsoft languages - Floating Point emulation  5**19
  101. Interrupt 35h   Turbo C/Microsoft languages - Floating Point emulation  5**20
  102. Interrupt 36h   Turbo C/Microsoft languages - Floating Point emulation  5**21
  103. Interrupt 37h   Turbo C/Microsoft languages - Floating Point emulation  5**22
  104. Interrupt 38h   Turbo C/Microsoft languages - Floating Point emulation  5**23
  105. Interrupt 39h   Turbo C/Microsoft languages - Floating Point emulation  5**24
  106. Interrupt 3Ah   Turbo C/Microsoft languages - Floating Point emulation  5**25
  107. Interrupt 3Bh   Turbo C/Microsoft languages - Floating Point emulation  5**26
  108. Interrupt 3Ch   Turbo C/Microsoft languages - Floating Point emulation  5**27
  109. Interrupt 3Dh   Turbo C/Microsoft languages - Floating Point emulation  5**28
  110. Interrupt 3Eh   Turbo C/Microsoft languages - Floating Point emulation  5**29
  111. Interrupt 3Fh   Overlay Manager Interrupt (Microsoft LINK.EXE) ........ 5**30
  112. Interrupt 40h   Hard Disk BIOS ........................................ 5**31
  113. Interrupt 41h   Hard Disk Parameters .................................. 5**32
  114. Interrupt 42h   Pointer to screen BIOS entry .......................... 5**33
  115. Interrupt 43h   Pointer to EGA Graphics Character Table ............... 5**34
  116. Interrupt 44h   Pointer to graphics character table ................... 5**35
  117. Interrupt 45h   Reserved by IBM  (not initialized) .................... 5**36
  118. Interrupt 46h   Pointer to second hard disk parameter block ........... 5**37
  119. Interrupt 47h   Reserved by IBM  (not initialized) .................... 5**38
  120. Interrupt 48h   Cordless Keyboard Translation ......................... 5**39
  121. Interrupt 49h   Non-keyboard Scan Code Translation Table Address (PCjr) 5**40
  122. Interrupt 4Ah   Real-Time Clock Alarm (Convertible, PS/2) ............. 5**41
  123. Interrupt 4Bh   Reserved by IBM  (not initialized) .................... 5**42
  124. Interrupt 4Ch   Reserved by IBM  (not initialized) .................... 5**43
  125. Interrupt 4Dh   Reserved by IBM  (not initialized) .................... 5**44
  126. Interrupt 4Eh   Reserved by IBM  (not initialized) .................... 5**45
  127. Interrupt 4Fh   Reserved by IBM  (not initialized) .................... 5**46
  128. Interrupt 50-57 IRQ0-IRQ7 Relocation .................................. 5**47
  129. Interrupt 58h   Reserved by IBM  (not initialized) .................... 5**48
  130. Interrupt 59h   Reserved by IBM  (not initialized) .................... 5**49
  131. Interrupt 5Ah   Reserved by IBM  (not initialized)  ................... 5**50
  132. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**51
  133. Interrupt 5Ah   Cluster Adapter BIOS entry address .................... 5**52
  134. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**53
  135. Interrupt 5Ch   NETBIOS interface entry port, TOPS .................... 5**54
  136. Interrupt 5Dh   Reserved by IBM  (not initialized) .................... 5**55
  137. Interrupt 5Eh   Reserved by IBM  (not initialized) .................... 5**56
  138. Interrupt 5Fh   Reserved by IBM  (not initialized) .................... 5**57
  139. Interrupt 60h-67h  User Program Interrupts ............................ 5**58
  140. Interrupt 60h   Network OS Interface .................................. 5**59
  141. Interrupt 67h   Expanded Memory Board Driver Interrupt ................ 5**60
  142. Interrupt 68h   Not Used  (not initialized) ........................... 5**61
  143. Interrupt 69h   Not Used  (not initialized) ........................... 5**62
  144. Interrupt 6Ah   Not Used  (not initialized) ........................... 5**63
  145. Interrupt 6Bh   Not Used  (not initialized) ........................... 5**64
  146. Interrupt 6Ch   System Resume Vector (Convertible) .................... 5**65
  147. Interrupt 6Dh   Not Used  (not initialized) ........................... 5**66
  148. Interrupt 6Eh   Not Used  (not initialized) ........................... 5**67
  149. Interrupt 6Fh   10-Net API............................................. 5**68
  150. Interrupt 70h   IRQ 8, Real Time Clock Interrupt (AT, XT/286, PS/2) ... 5**69
  151. Interrupt 71h   IRQ 9, Redirected to IRQ 8 (AT, XT/286, PS/2) ......... 5**70
  152. Interrupt 72h   IRQ 10  (AT, XT/286, PS/2)  Reserved .................. 5**71
  153. Interrupt 73h   IRQ 11  (AT, XT/286, PS/2)  Reserved .................. 5**72
  154. Interrupt 74h   IRQ 12  Mouse Interrupt (PS/2) ........................ 5**73
  155. Interrupt 75h   IRQ 13, Coprocessor Error (AT) ........................ 5**74
  156. Interrupt 76h   IRQ 14, Hard Disk Controller (AT, XT/286, PS/2) ....... 5**75
  157. Interrupt 77h   IRQ 15 (AT, XT/286, PS/2)  Reserved ................... 5**76
  158. Interrupt 78h   Not Used .............................................. 5**77
  159. Interrupt 79h   Not Used .............................................. 5**78
  160. Interrupt 7Ah   Reserved .............................................. 5**79
  161. Interrupt 7Bh-7Eh  Not Used by IBM .................................... 5**80
  162. Interrupt 7Ch   REXX-PC API ........................................... 5**81
  163. Interrupt 7Fh   IBM 8514/A Graphics Adapter API ....................... 5**82
  164. Interrupt 80h-85h  Reserved by BASIC .................................. 5**83
  165. Interrupt 86h   Int 18 when relocated by NETBIOS ...................... 5**84
  166. Interrupt 86h-0F0h  Used by BASIC when BASIC interpreter is running ... 5**85
  167. Interrupt 0A4h  Right Hand Man API .................................... 5**86
  168. Interrupt 0D4h  PC-MOS/386 API ........................................ 5**87
  169. Interrupt 0E0h  Digital Research CP/M-86 function calls ............... 5**88
  170. Interrupt 0E1h  PC Cluster Disk Server Information .................... 5**89
  171. Interrupt 0E2h  PC Cluster Program .................................... 5**90
  172. Interrupt 0E4h  Logitech Modula-2 v2.0   Monitor Entry ................ 5**91
  173. Interrupt 0E5h  Not Used .............................................. 5**92
  174. Interrupt 0E6h  Not Used .............................................. 5**93
  175. Interrupt 0E7h  Not Used .............................................. 5**94
  176. Interrupt 0E8h  Not Used .............................................. 5**95
  177. Interrupt 0E9h  Not Used .............................................. 5**96
  178. Interrupt 0EAh  Not Used .............................................. 5**97
  179. Interrupt 0EBh  Not Used .............................................. 5**98
  180. Interrupt 0ECh  Not Used .............................................. 5**99
  181. Interrupt 0EDh  Not Used ............................................. 5**100
  182. Interrupt 0EEh  Not Used ............................................. 5**101
  183. Interrupt 0EFh  GEM interface (Digital Research) ..................... 5**102
  184. Interrupt 0F0h  unknown .............................................. 5**103
  185. Interrupts 0F1h-0FFh  (absolute addresses 3C4h-3FFh) ................. 5**104
  186. Interrupt 0F4h  Not Used ............ ................................ 5**105
  187. Interrupt 0F5h  Not Used ............ ................................ 5**106
  188. Interrupt 0F8h  Set Shell Interrupt (OEM) ............................ 5**107
  189. Interrupt 0F9h  Reserved ............................................. 5**108
  190. Interrupt 0FAh  USART ready (RS-232C) ................................ 5**109
  191. Interrupt 0FBh  USART RS ready (keyboard) ............................ 5**110
  192. Interrupt 0FCh  Unknown ...............................................5**111
  193. Interrupt 0FDh  reserved for user interrupt .......................... 5**112
  194. Interrupt 0FEh  reserved by IBM ...................................... 5**113
  195. Interrupt 0FFh  reserved by IBM ...................................... 5**114
  196.  
  197.  
  198.  
  199. CHAPTER 6       DOS Control Blocks and Work Areas
  200.  
  201. DOS Address Space ..................................................... 6**1
  202. Storage Blocks ........................................................ 6**2
  203. Disk Transfer Area (DTA) .............................................. 6**3
  204. Program Segment Prefix ................................................ 6**4
  205. Memory Control Blocks ................................................. 6**5
  206. DOS Program Segment ................................................... 6**6
  207.  
  208.  
  209. CHAPTER 7       DOS File Information
  210.  
  211. File Management Functions ............................................. 7**1
  212. FCB Function Calls .................................................... 7**2
  213. Handle Function Calls ................................................. 7**3
  214. Special File Handles .................................................. 7**4
  215. Raw and Cooked File I/O ............................................... 7**5
  216. Number of Open Files Allowed  ......................................... 7**6
  217. Restrictions on FCB Usage ............................................. 7**7
  218. Restrictions on Handle usage .......................................... 7**8
  219. Allocating Space to a File ............................................ 7**9
  220. MSDOS / PCDOS Differences ............................................. 7**10
  221. .COM File Structure ................................................... 7**11
  222. .EXE File Structure ................................................... 7**12
  223. The Relocation Table .................................................. 7**13
  224. "NEW" .EXE Format (Microsoft Windows and OS/2) ........................ 7**14
  225. Standard File Control Block ........................................... 7**15
  226. Extended File Control Block ........................................... 7**16
  227. Disk Transfer Area .................................................... 7**17
  228.  
  229.  
  230. CHAPTER 8       DOS Disk Information
  231.  
  232. The DOS Area .......................................................... 8**1
  233. The Boot Record ....................................................... 8**2
  234. DOS File Allocation Table (FAT) ....................................... 8**3
  235.         Media Descriptor Byte ......................................... 8**4
  236.         12 Bit FATs ................................................... 8**5
  237.         16 Bit FATs ................................................... 8**6
  238.         32 Bit FATs ................................................... 8**7
  239. DOS Disk Directory .................................................... 8**8
  240. The Data Area ......................................................... 8**9
  241. Floppy Disk Types ..................................................... 8**10
  242. Hard Disk Layout ...................................................... 8**11
  243. System Initialization ................................................. 8**12
  244. Boot Record/Partition Table ........................................... 8**13
  245. Hard Disk Technical Information ....................................... 8**14
  246. Determining Hard Disk File Allocation ................................. 8**15
  247. BIOS Disk Functions ................................................... 8**16
  248.  
  249.  
  250. CHAPTER 9       Device Drivers
  251.  
  252.  
  253. CHAPTER 10      Lotus/Intel/Microsoft Expanded Memory Specification
  254.  
  255. History ............................................................... 10**1
  256. Uses of Expanded Memory ............................................... 10**2
  257. DOS and Expanded Memory ............................................... 10**3
  258. Different Memory Types ................................................ 10**4
  259. AST/Quadram/Ashton-Tate Enhanced EMM .................................. 10**5
  260. EMS Address Space Map ................................................. 10**6
  261. Writing Programs That Use Expanded Memory ............................. 10**7
  262. Page Frames ........................................................... 10**8
  263. Calling the Manager ................................................... 10**9
  264. Detecting EMS ......................................................... 10**10
  265. Terminate and Stay Resident (TSR) Program Cooperation ................. 10**11
  266. Expanded Memory Services Quick List ................................... 10**12
  267. Expanded Memory Services .............................................. 10**13
  268.         LIM 3.2 Specification ......................................... 10**14
  269.         LIM 4.0 Specification ......................................... 10**15
  270.         AQA EEMS 3.2 Specification .................................... 10**16
  271.         VCPI API 1.0 .................................................. 10**17
  272. Expanded Memory Manager Error Codes ................................... 10**18
  273.  
  274.  
  275. CHAPTER 11      Conversion Between Operating Systems
  276.  
  277. Overview .............................................................. 11**1
  278. Special Considerations ................................................ 11**2
  279. Example Operating Systems ............................................. 11**3
  280. Atari ST .............................................................. 11**4
  281. CP/M .................................................................. 11**5
  282. MacOS ................................................................. 11**6
  283. AmigaDOS .............................................................. 11**7
  284. OS/2 .................................................................. 11**8
  285. UNIX .................................................................. 11**9
  286.  
  287.  
  288. CHAPTER 12      Microsoft Windows API
  289.  
  290. Overview .............................................................. 12**1
  291. Programming Windows ................................................... 12**2
  292. Versions .............................................................. 12**3
  293. Functions ............................................................. 12**4
  294. Error Codes ........................................................... 12**5
  295.  
  296.  
  297. CHAPTER 13      Network APIs
  298.  
  299. FTP Driver - PC/TCP Packet Driver Specification ....................... 13**1
  300. 10-Net Network ........................................................ 13**2
  301. LANtastic LANOS API ................................................... 13**3
  302. Novell NetWare 2.11 API ............................................... 13**4
  303. APPC/PC ............................................................... 13**5
  304.  
  305.  
  306. CHAPTER 14      Mouse Programming
  307.  
  308. General Information ................................................... 14**1
  309. Register Usage ........................................................ 14**2
  310. Interrupt 33h Function Requests ....................................... 14**3
  311. Interrupt 10h Function Requests ....................................... 14**4
  312.  
  313.  
  314. CHAPTER 15      Register-Level Programming
  315.  
  316. 8555 Peripheral Interface ............................................. 15**1
  317. 8259 Interrupt Controller ............................................. 15**2
  318. AT CMOS RAM Configuration ............................................. 15**3
  319.  
  320.  
  321. CHAPTER 16      Video Programming
  322.  
  323. Quick List of BIOS Interrupt 10h Functions ............................ 16**1
  324. BIOS Interrupt 10h Functions in Detail ................................ 16**2
  325.  
  326.  
  327. CHAPTER 17      Multitasking Shells
  328.  
  329. Introduction .......................................................... 17**1
  330. Programming Practices ................................................. 17**2
  331. TopView/DesQview API (interrupt 15h, "System Services" interface) ..... 17**3
  332. TopView/DesQview API (interrupt 16h, "BIOS Video" interface) .......... 17**4
  333.  
  334.  
  335. CHAPTER 18      Viruses and Trojan Horses
  336.  
  337.  
  338. MISCSTUF        Miscellaneous Stuff
  339.  
  340. AFTERWRD        Afterword
  341.  
  342. CREDITS         Credits and Bibliography
  343.  
  344.  
  345.  
  346.  A P P E N D I C E S
  347.  
  348. APPENDIX  1     Keyboard scan code chart
  349.  
  350. APPENDIX  2     ASCII character chart
  351.  
  352. APPENDIX  3     IBM PC character set
  353.  
  354. APPENDIX  4     IBM PC error code listing
  355.  
  356. APPENDIX  5     Addresses of various manufacturers
  357.  
  358. APPENDIX  6     Hard disk information
  359.  
  360. APPENDIX  7     Floppy and Tape Devices
  361.  
  362. APPENDIX  8     Pinouts of various connectors on the IBM PC
  363.  
  364. APPENDIX  9     Sizes of various drivers installed in CONFIG.SYS
  365.  
  366. APPENDIX  10    Common modem instruction sets
  367.  
  368. APPENDIX  11    Glossary of computer terminology
  369.  
  370. APPENDIX  12    Various busses used in MSDOS machines
  371.  
  372. APPENDIX  13    Common filename extensions
  373.  
  374. APPENDIX  14    Clock speeds of various expansion cards
  375.  
  376. APPENDIX  15    Header formats used by various archive utilities
  377.  
  378. APPENDIX  16    Miscellaneous Hardware Information
  379.  
  380. APPENDIX  17    HP LaserJet Setup Codes
  381.  
  382. APPENDIX  18    ANSI.SYS
  383.  
  384. APPENDIX  19    DEC VT100 Escape Sequences
  385.  
  386. APPENDIX  20    Various Paint Program Formats
  387.  
  388.  
  389.